<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="image/png">

  <title>课程信息展示</title>

  <!--dynamic table-->
  <link th:href="@{/js/advanced-datatable/css/demo_page.css}" rel="stylesheet" />
  <link th:href="@{js/advanced-datatable/css/demo_table.css}" rel="stylesheet" />
  <link rel="stylesheet" th:href="@{/js/data-tables/DT_bootstrap.css}" />

  <!--公共css-->
  <link th:include="common::commonheader">
</head>

<body class="sticky-header">

<section>
  <!-- left side start-->
  <div th:replace="common::leftmenu"></div>
  <!-- left side end-->

  <!-- main content start-->
  <div class="main-content" >

    <!-- 头部分开始-->
    <div th:replace="common::headermenu"></div>
    <!-- header section end-->

    <!-- page heading start-->
    <div class="page-heading">
      <h3>
        课程信息表
      </h3>
      <ul class="breadcrumb">
        <li>
          <a href="#">Dashboard</a>
        </li>
        <li>
          <a href="#">Data Tables</a>
        </li>
        <li class="active"> 课程信息表 </li>
      </ul>
    </div>
    <!-- page heading end-->

    <!--body wrapper start-->
    <div class="wrapper">
      <div class="row">
        <div class="col-sm-12">
          <section class="panel">
            <header class="panel-heading">
              课程信息表
              <span class="tools pull-right">
                <a href="javascript:;" class="fa fa-chevron-down"></a>
                <a href="javascript:;" class="fa fa-times"></a>
             </span>
            </header>
            <div class="panel-body">
              <div class="adv-table">
                <table  class="display table table-bordered table-striped" id="dynamic-table">
                  <thead>
                  <tr>
                    <th>课程编号</th>
                    <th>课程名</th>
                    <th>学分</th>
                    <th>开设时期</th>
                    <th>可选人数</th>
                    <th>可选年级</th>
                  </tr>
                  </thead>

                  <tbody>
                  <tr class="gradeX" th:each="course,stats:${courses}">
                    <td th:text="${stats.count}"></td>
                    <td th:text="${course.getName()}"></td>
                    <td th:text="${course.getCredit()}"></td>
                    <td th:text="第+${course.getTimeStart()}+到+${course.getTimeEnd()}+周+${course.getTerm()}+季学期"></td>
                    <td th:text="${course.getPlaces()}"></td>
                    <td th:text="大+${course.getAvailableGrade()}"></td>
                  </tr>
                  </tbody>

                </table>
              </div>
            </div>
          </section>
        </div>
      </div>

    <footer>
      2021 &copy; see student info
    </footer>
    <!--footer section end-->


  </div>
  </div>
  <!-- main content end-->
</section>

<div th:replace="common::commonscript"/>


<!--dynamic table-->
<script type="text/javascript" language="javascript" th:src="@{/js/advanced-datatable/js/jquery.dataTables.js}"></script>
<script type="text/javascript" th:src="@{/js/data-tables/DT_bootstrap.js}"></script>
<!--dynamic table initialization -->
<script th:src="@{/js/dynamic_table_init.js}"></script>



</body>
</html>
